package QC.MessageBox.common;

import io.vertx.core.json.JsonObject;

/**
 * Created by Andaren on 2017/11/2.
 * Used for:
 */
public final class WxApiErrorResult {

    private String msg;
    private Integer code;

    public String getMsg() {
        return msg;
    }

    public WxApiErrorResult setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Integer getCode() {
        return code;
    }

    public WxApiErrorResult setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String toJson() {
        return new JsonObject()
                .put("msg", this.msg)
                .put("code", this.code)
                .encode();
    }
}
